package com.jt.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Jingyan
 * @Time: 2018-08-03 17:30
 * @Description:
 */
@Component
@ConfigurationProperties(prefix="gofun",ignoreUnknownFields = true)
public class MsConfigProperties {

    //默认开启缓存
    private boolean cacheEnabled = true;

    public boolean isCacheEnabled() {
        return cacheEnabled;
    }

    public void setCacheEnabled(boolean cacheEnabled) {
        this.cacheEnabled = cacheEnabled;
    }
}